package com.material.vtool.mapper;

import com.material.vtool.entity.BTeamInfoEntity;
import com.material.vtool.entity.combinedEntity.CombinedTeamEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TeamInfoMapper {
    Integer insertTeamInfo(BTeamInfoEntity bTeamInfoEntity);

    int updateTeamInfo(BTeamInfoEntity bTeamInfoEntity);

    List<CombinedTeamEntity> getTeamByIdOrName(@Param("miniCode") String miniCode, @Param("key") String key);

    BTeamInfoEntity getTeamInfoByTeamId(Integer teamId);

    Integer increaseShareCount(Integer teamId);
}
